package javaDesignModel.factoryPattern;

/**
 * Created by admin on 2017/3/13.
 */
public class Client {
    public static void main(String[] args) {
        Client client = new Client();
        LoggerFactory loggerFactory;
        Logger logger;
        //通过类名生成对象并将其返回
        loggerFactory = (LoggerFactory) XMLUtil.getBean();
        logger = loggerFactory.getLogger();
        logger.writeLog();
    }
}
